finding the range of a data set